package com.ybkj.daijia.server.service;

import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.mc.Passenger;
import com.ybkj.daijia.server.model.MemberNotice;
import java.util.Map;

/**
 * @author Shine
 */
public interface MemberNoticeService {

    /**
     * 查询当前公司的所有通知信息
     *
     * @return
     */
    public Page<MemberNotice> queryAll();

    /**
     * 保存会员通知信息
     *
     * @param memberNotice
     * @return
     */
    public MemberNotice insertRecord(MemberNotice memberNotice);

    /**
     * 查询一条通知信息
     *
     * @param id
     * @return
     */
    public MemberNotice findOne(Long id);

    /**
     * 分页查询出通知信息
     *
     * @param driver
     * @param page
     * @param limit
     * @return
     */
    public Page<MemberNotice> findAll(String phone, Integer page, Integer limit);

    /**
     * 根据主键删除会员通知信息
     *
     * @param memberNotice
     */
    public void delete(MemberNotice memberNotice);

    public Page<Map<String, Object>> pageNotice(Passenger passenger, Integer page, Integer limit);


    public void create(String content, String contentMore, String carNumber, String name,
        String phone, Long[] companyIds, String startTime, String endTime,
        Long[] gradeIds, Integer[] type, Boolean[] allowOverdraw, String[] channelName,
        String sendTypes);

}
